package builderpattern.builder.impl;

import builderpattern.builder.Builder;
import builderpattern.house.AbstractHouse;
import builderpattern.house.extend.House;

/**
 * @author : DuJiabao
 * @Date : 2021/3/2 10:37
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public class CommonHouseBuilder implements Builder {
  private AbstractHouse house = new House();

  @Override
  public void buildBasic() {
    house.setBasic("普通的地基");
  }

  @Override
  public void buildWalls() {
    house.setWall("普通的外墙");
  }

  @Override
  public void roofed() {
    house.setRoofed("普通的屋顶");
  }

  @Override
  public AbstractHouse build() {
    return house;
  }
}
